package com.xhs.aop;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * 动态切换数据源
 * @author wudawei 356110537@qq.com
 * @date 2016-12-28
 *
 */
public class ChooseDataSource extends AbstractRoutingDataSource {

	@Override
	public Object determineCurrentLookupKey() {
		return HandleDataSource.getDataSource();
	}
	
}
